package com.whjz.dcfs.ggts.struts.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.whjz.dcfs.ggts.dao.IDcfsGgtsJbxxDAO;
import com.whjz.dcfs.ggts.dao.IDcfsTsclJbxxDAO;
import com.whjz.dcfs.ggts.model.DcfsGgtsJbxx;
import com.whjz.dcfs.ggts.model.DcfsTsclJbxx;
import com.whjz.dcfs.util.AjaxUtil;
import com.whjz.dcfs.util.BaseAction;

public class JZTSbbAction extends BaseAction{

	private static final long serialVersionUID = 1L;
	
	private DcfsTsclJbxx dcfsTsclJbxx;
	@Autowired
	private IDcfsTsclJbxxDAO dcfsTsclJbxxDAO;
	@Autowired
	private IDcfsGgtsJbxxDAO dcfsGgtsJbxxDAO;
	
	private DcfsGgtsJbxx dcfsGgtsJbxx;
	
	public void getTsclJbxx() throws Exception{
		try{
			List<DcfsTsclJbxx> list=dcfsTsclJbxxDAO.getDcfsTsclJbxxByPK(dcfsTsclJbxx);
			AjaxUtil.outputJSONResult(list, getHttpServletResponse());
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	public void getGgtsJbxx() throws Exception{
		try{
			List<DcfsGgtsJbxx> list=dcfsGgtsJbxxDAO.getDcfsGgtsJbxxByPk(dcfsGgtsJbxx);
			AjaxUtil.outputJSONResult(list, getHttpServletResponse());
		}catch(Exception e){
			e.printStackTrace();
		}
	}

	public DcfsTsclJbxx getDcfsTsclJbxx() {
		return dcfsTsclJbxx;
	}

	public void setDcfsTsclJbxx(DcfsTsclJbxx dcfsTsclJbxx) {
		this.dcfsTsclJbxx = dcfsTsclJbxx;
	}

	public DcfsGgtsJbxx getDcfsGgtsJbxx() {
		return dcfsGgtsJbxx;
	}

	public void setDcfsGgtsJbxx(DcfsGgtsJbxx dcfsGgtsJbxx) {
		this.dcfsGgtsJbxx = dcfsGgtsJbxx;
	}
	
	

}
